
package com.lei.ssm.vo;

/**
 * @description APP的返回结果封装类
 * @author wangyulong-910
 * @date 2016年12月7日下午6:20:41
 */
public class SNSResult<T> {
	/*
	 * 结果码
	 */
	private String result;
	/*
	 * 提示信息
	 */
	private String msg;
	/*
	 * 返回数据
	 */
	private T data;

	public SNSResult() {
	}
	public SNSResult(String result) {
		this.result = result;
	}
	public SNSResult(String result, String msg) {
		this.result = result;
		this.msg = msg;
	}

	public SNSResult(String result, String msg, T data) {
		this.result = result;
		this.msg = msg;
		this.data = data;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return "SNSResult [result=" + result + ", msg=" + msg + ", data=" + data + "]";
	}
}
